﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_console/_console.Master" AutoEventWireup="true" CodeBehind="application-module-assign.aspx.cs" Inherits="SmartSpace.WebApp._console.core.application_module_assign" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderTitle" runat="server">
    management module
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderToolbar" runat="server">
    <asp:HyperLink ID="_ctlLinkBack" runat="server">返回</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderContent" runat="server">
    <div class="form">
        <table>
            <tr>
                <td class="th" style="width: 75px;">名称
                </td>
                <td>
                    <asp:Label ID="_ctlLabelName" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="th">type
                </td>
                <td>
                    <asp:Label ID="_ctlLabelType" runat="server" />
                </td>
            </tr>
        </table>

        <asp:Repeater ID="_ctlListAssigned" runat="server">
            <HeaderTemplate>
                <table style="margin-top: 5px;">
                    <tr>
                        <th style="width: 50px;">-
                        </th>
                        <th>assigned module
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:LinkButton ID="_ctlBtnDisable" Text="禁用" runat="server" CommandArgument='<%# Eval("Id") %>' OnClick="_ctlBtnDisable_Click" />
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>

        <asp:Repeater ID="_ctlListUnassigned" runat="server">
            <HeaderTemplate>
                <table style="margin-top: 5px;">
                    <tr>
                        <th style="width: 50px;">-
                        </th>
                        <th>unassigned module
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:LinkButton ID="_ctlBtnEnable" Text="启用" runat="server" CommandArgument='<%# Eval("Id") %>' OnClick="_ctlBtnEnable_Click" />
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
